<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}

//insert Size
if(isset($_REQUEST['sizeSubmit']))
{
	foreach($_REQUEST['item'] as $selectedOption)
	$itemSize = $_REQUEST['sizeName'];
  $insertItem = mysql_query("INSERT INTO size
 									                  VALUES(NULL,'$selectedOption',$itemSize)");
}

include("./bottom.php");
$smarty->display("index.tpl");
?>